<?php

$list_dossiers = $customer->getDossiers();
if ($list_dossiers->count() == 0) {
    echo "Aucun dossier";
} else {
    foreach ($list_dossiers as $key => $dossier) {
        if ( $dossier->getIsClose() ) {
            echo link_to('Dossier n° ' . $dossier->getId() .' cloturer', 'dossier/edit?id=' . $dossier->getId());
        }else {
            echo link_to('Dossier n° ' . $dossier->getId(), 'dossier/edit?id=' . $dossier->getId());
        }    
    }
}
?>
<br>

<?php
echo link_to('Nouveau dossier', 'dossier/new?user_id='.$customer->getId());

?>
